import request from '@/utils/request.js'

/**
 * 获取简历列表
 * @param {Object} id 用户ID
 * 
 */
export function getResumeList(id) {
	return request({ url: '/resume/list/' + id })
}

/**
 * 添加简历
 * @param {Object} id 用户ID
 * @param {Object} data 简历信息
 */
export function createResume(id, data) {
	return request({
		url: '/resume/create/' + id,
		method: 'POST',
		data
	})
}

/**
 * 移除简历
 * @param {Object} id
 */
export function removeResume(id) {
	return request({
		url: '/resume/delete/' + id,
		method: 'DELETE'
	})
}